
public class VstupnaKontrola {
	
	public static boolean CeleCislo(String vstup){
		
		try {
			
			int xXx = Integer.valueOf(vstup).intValue();
			if (xXx > 0)return true; 
			else return false;
			
		}catch(Exception cc){
			return false;	
		}
	}
	
	public static boolean DesatinneCislo(String vstup){
		
		try {
			
			float xXx = Float.valueOf(vstup).floatValue();
			if (xXx>1.0099)return true;
			else return false;
			
		}catch(Exception cc){
			return false;	
		}
	}

	
	
/*	
public static void main (String[] args){
	
	if (DesatinneCislo("1.009")== true) System.out.println("true");
	else System.out.println("False");
	
}*/

}
